import Vue from "vue";
import VueStorage from "vue-ls";
import pkg from "../../package";
import _cookies from "js-cookie";

// this.$storage
Vue.use(VueStorage, {
  namespace: `${pkg.name}_${pkg.version}__`,
  name: "storage",
  storage: "session"
});

// this.$cookies
Vue.prototype.$cookies = _cookies;

export const storage = Vue.storage;
export const cookies = _cookies;
